package BaseService

import (
	"context"
	toolsDb "gdshop-back-end-go/common/db"
)

func ShareUrlToPagePath(ctx context.Context, shareUrl string) string {
	value, err := toolsDb.GetUnSafaTableAddDeleteWhere(ctx, "share_url").Where("share_url", shareUrl).
		Where("status", 1).Fields("page_path").Value()
	if err != nil {
		return ""
	}
	return value.String()
}
